package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.base.DeHongApp;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.EmptyInfo;
import com.google.gson.reflect.TypeToken;

import android.app.Activity;

/**
 * 体验金投标
 * @author YeFengyun
 */
public class TiyanjinBidModel extends HttpRequest<EmptyInfo>{

	public TiyanjinBidModel(Activity activity, RequestCallBack<EmptyInfo> callback) {
		super(activity, callback);
	}
	
	
	public void doNet(String uid ,String id, String price, String phone_type) {
		mPostValues.put("a", "investupdate");
		mPostValues.put("m", "Invest");
		mPostValues.put("id", id);
		mPostValues.put("price", price);
		mPostValues.put("platform", "android");
		mPostValues.put("phone_type", phone_type);
		mPostValues.put("uid", uid);
		requestByPost();
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.getTiyanjinBid;
	}

	@Override
	public Type getType() {
		return new TypeToken<EmptyInfo>() {}.getType();
	}


	@Override
	public Class<EmptyInfo> getClazz()
	{
		return EmptyInfo.class;
	}

}

